package com.lee.member.api.service;

import com.alibaba.fastjson.JSONObject;
import com.lee.response.ResponseResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 联合登录
 * @author zfl_a
 * @date 2020/4/5
 * @project login-authorization-parent
 */
public interface UnionLoginService {

    /**
     * 根据不同的publicId进行联合登录
     * @param publicId
     * @return
     */
    @GetMapping("/unionLogin")
    ResponseResult unionLogin(@RequestParam("publicId") String publicId);

    /**
     * 联合登陆回调接口
     *
     * @return
     */
    @GetMapping("/login/auth/callback")
    ResponseResult unionLoginCallback(@RequestParam("publicId") String publicId);
}
